{extend name="base" /} {block name="body"}
<head>
	<meta charset="utf-8" />
	<link rel="stylesheet" href="/public/oem/css/iconfont.css" />
	<link rel="stylesheet" href="/public/oem/css/css.css" />
	<link rel="stylesheet" href="/public/static/layui/css/layui.css" media="all">
</head>

<div class="layui-body">
	<div class="navbar">
		<a><cite>售票管理</cite></a>&nbsp;<span class="layui-box">&gt;</span>
		<a href=""><cite>基本设置</cite></a>
	</div>
	<div class="layui-tab layui-tab-card margin10">
		<ul class="layui-tab-title">
			<li class="layui-this">售票参数</li>
		</ul>
		<div class="layui-tab-content">
			<form class="layui-form form-container layui-form-pane" action="{:url()}" method="post">
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 150px">售票价格</label>
					<div class="layui-input-block">
						<input type="text" style="width: 650px" name="ticket_config[ticket_price]" value="{$ticket_config.ticket_price}" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 150px">免费票张数/每日</label>
					<div class="layui-input-block">
						<input type="text" style="width: 650px" name="ticket_config[ticket_daysum]" value="{$ticket_config.ticket_daysum}" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 150px">免费票分享次数</label>
					<div class="layui-input-block">
						<input type="text" style="width: 650px" name="ticket_config[share_num]" value="{$ticket_config.share_num}" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 150px">商家免费票次数</label>
					<div class="layui-input-block">
						<input type="text" style="width: 650px" name="ticket_config[agent_num]" value="{$ticket_config.agent_num}" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 150px">奖品核销密码</label>
					<div class="layui-input-block">
						<input type="text" style="width: 650px" name="ticket_config[jp_password]" value="{$ticket_config.jp_password}" autocomplete="off" placeholder="请设置6位奖品核销密码" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 150px">有效日期</label>
					<div class="layui-input-block">
		                <div class="right clearfix">
				            <div class="layui-inline">
							    <div class="layui-input-inline">
						        <input type="text" class="layui-input" name="ticket_config[begin_time]" value="{$ticket_config.begin_time}" id="begin_time" placeholder="yyyy年MM月dd日">
							    </div>
							</div>
				                <i class="chax_line"></i>
				            <div class="layui-inline">
							    <div class="layui-input-inline">
							    <input type="text" class="layui-input" name="ticket_config[end_time]" value="{$ticket_config.end_time}"  id="end_time" placeholder="yyyy年MM月dd日">
							    </div>
							</div>
				        </div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button class="layui-btn" lay-submit lay-filter="*"><i class="fa fa-save"></i> 保存</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
{/block}
{block name="js"}
<script src="/public/static/layui/layui.js"></script>
<script>
	layui.use('laydate', function(){
		var laydate = layui.laydate;
		
		//日期控件
		laydate.render({
		    elem: '#begin_time'
		    ,type: 'datetime'
		    ,format: 'yyyy-MM-dd HH:mm:ss'
		});
		  
		laydate.render({
		    elem: '#end_time'
		    ,type: 'datetime'
		    ,format: 'yyyy-MM-dd HH:mm:ss'
		});
		
	})
</script>{/block}